const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, //在根级的getters上 开发子模块的属性给别人看 给别人用
  name: state => state.user.userInfo?.normalInfo.username, //建立用户名的映射
  userId: state => state.user.userInfo?.normalInfo.userId, //建立用户id的映射
  staffPhoto: state => state.user.userInfo?.detailInfo.staffPhoto, //建立用户头像的映射
  // token: state => state.user.token,
  // avatar: state => state.user.avatar,
  // name: state => state.user.name
}
export default getters
